const mongoose = require("mongoose")
const Schema = mongoose.Schema

const Mssage_type = {
    title: {
        type: String,
        default: ""
    },
    background: {
        type: String,
        default: ""
    },
    btn_color: {
        type: String,
        default: ""
    },
    font_color: {
        type: String,
        default: ""
    },
    top: {
        type: String,
        default: ""
    },
    left: {
        type: String,
        default: ""
    },
    rotate: {
        type: String,
        default: ""
    },
    publish_time: {
        type: Number,
        default: Date.now()
    }

}


const MssageModel = mongoose.model("message", new Schema(Mssage_type))

module.exports = MssageModel